/**
 * 用户端路由
 * */
export default [
  // 定一个重定向
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: 'Home' */ '../views/Home.vue'),
    meta: {
      activeNum: 2,
      isShowTabbar: true
    }
  },
  {
    path: '/recharge',
    name: 'Recharge',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/Recharge.vue')
  },
  {
    path: '/recharge/record',
    name: 'RechargeRecord',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/RechargeRecord.vue')
  },
  {
    path: '/refund',
    name: 'Refund',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/Refund.vue')
  },
  {
    path: '/gocharge',
    name: 'gocharge',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/GoCharge.vue')
  },
  {
    path: '/charging',
    name: 'charging',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/Charging.vue')
  },
  {
    path: '/charge/record',
    name: 'ChargeRecord',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/ChargeRecord.vue')
  },
  {
    path: '/commonly',
    name: 'Commonly',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/CommonlyStation.vue')
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import(/* webpackChunkName: 'Topic' */ '../views/Register.vue')
  },
  {
    path: '/nearby',
    name: 'NearBy',
    component: () => import(/* webpackChunkName: 'Topic' */ '../views/NearBy.vue'),
    meta: { // 给 $route 携带信息
      activeNum: 0,
      isShowTabbar: true
    }
  },
  {
    path: '/card',
    name: 'Card',
    component: () => import(/* webpackChunkName: 'Topic' */ '../views/Card.vue')
  },
  {
    path: '/card/recharge/:id',
    name: 'CardRecharge',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/CardRecharge.vue')
  },
  {
    path: '/card/recharge/record/:id',
    name: 'CardRechargeRecord',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/CardRechargeRecord.vue')
  },
  {
    path: '/card/charge/record/:id',
    name: 'CardChargeRecord',
    component: () => import(/* webpackChunkName: 'Recharge' */ '../views/CardChargeRecord.vue')
  },
  {
    path: '/errorPage',
    name: 'ErrorPage',
    component: () => import(/* webpackChunkName: 'ProductDetail' */ '../views/ErrorPage.vue')
  }
]
